package string;

public class LengDemo {
    public static void main(String[] args) {
        //获取字符串的长度
        String s="我爱java!";
        System.out.println("s的长度"+s.length());

        System.out.println("s的下标");
    }
}
